package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 陈鑫航
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2022-01-08 20:56:19
* @Entity com.itheima.stock.pojo.SysUser
*/
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    /**
     * 根据用户名查询股票信息
     * @return
     */
    SysUser findUserByUserName(@Param("username") String username);


    List<SysUser> findAllUser();

}
